package openase.audiosearch.comm.response.encoder;

import java.nio.ByteBuffer;

import openase.audiosearch.comm.ByteBufferUtils;
import openase.audiosearch.comm.response.RegistrationSuccessful;
import openase.audiosearch.comm.response.ResponseType;


public class RegistrationSuccessfulResponseEncoder implements ResponseEncoder<RegistrationSuccessful> {

	public ByteBuffer encode(RegistrationSuccessful response) {
		ByteBuffer buf = ByteBufferUtils.newByteBuffer(ResponseType.REGISTRATION_SUCCESFUL.getId());
		buf.position(buf.limit());
		return buf;
	}
}
